package org.jeecg.common.Enum;

public enum ResultCode {
        PARAM_MISS(400, "缺少必要的请求参数"),
        PARAM_TYPE_ERROR(400, "请求参数类型错误"),
        PARAM_BIND_ERROR(400, "请求参数绑定错误"),
        PARAM_VALID_ERROR(400, "参数校验失败"),
        ;
        private int code;
        private String message;

        ResultCode(final int code, final String message) {
            this.code = code;
            this.message = message;
        }

        public int getCode() {
            return code;
        }

        public String getMessage() {
            return message;
        }

}
